﻿using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Threading.Tasks;
using System.Windows.Forms;

namespace SocksToggle
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            using (ProcessIcon processIcon = new ProcessIcon())
            {
                processIcon.Display();
                Microsoft.Win32.SystemEvents.SessionEnded += new Microsoft.Win32.SessionEndedEventHandler(processIcon.SessionEndHandler);
                // start application
                Application.Run();
            }
            //Application.Run(new Form1());
        }


    }
}
